package com.luoran.car.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName FAULT_INFO
 */
@TableName(value ="FAULT_INFO")
@Data
public class FaultInfo implements Serializable {
    /**
     * 唯一标识故障的编号，整数类型，主键
     */
    @TableId
    @ExcelProperty(value = "故障ID")
    private Integer faultId;

    /**
     * 关联车辆的唯一编号
     */
    @ExcelProperty(value = "车辆ID")
    private Integer vehiclesId;

    /**
     * 故障的类型
     */
    @ExcelProperty(value = "故障类型")
    private String faultType;

    /**
     * 详细说明故障的具体情况
     */
    @ExcelProperty(value = "故障描述")
    private String faultDescription;

    /**
     * 记录故障发生的时间
     */
    @ExcelProperty(value = "故障时间")
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date faultTime;

    /**
     * 0:未处理1:处理中2:已解决
     */
    @ExcelProperty(value = "故障状态")
    private Integer faultStatus;
    private String files;
    @TableField(exist = false)
    private String name;


    @TableField(exist = false)
    private String uname;


    @TableField(exist = false)
    private String starTime;
    @TableField(exist = false)
    private String endTime;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
